<script>
	// // APP 和 小程序平台

	export default {
		onLaunch: function() {
			console.log('App Launch')
			// const myAudio = uni.createInnerAudioContext();
			// myAudio.src = "/static/audio/01.mp3"
			// myAudio.play()

			// myAudio.onEnded(res => {
			// 	console.log(res)
			// })

		},
		onShow: function() {

			// uni.setStorageSync("token",
			// 	"eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImU5NTFlN2E3LWExNDUtNGNiOS05NDA5LTc3NTU1M2ViOTk2YiJ9.XAj5jCzA9TPWeP-A0yz3R7M5DzpGaICkXvOJjg5rrN4TwNx3ZFEOnyLsgmf6dMxOWfh47xlIRY5KM5yRnhB4qw"
			// )

			this.$store.commit('initUser');
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			// userInfo: userID userSig token phone
			userInfo: null,
			// 个人信息
			userProfile: null,
			isTUIKit: true,
			headerHeight: 0,
			statusBarHeight: 0,
			SDKAppID: 20000918
		},
		methods: {

		}
	}
</script>


<style lang="scss">
	@import "uview-ui/index.scss";

	/**
 * 设置所有页面的初始背景色
 */
	page {
		background-color: #f5f5f5;
		// background-image: linear-gradient(to bottom, #E3F3FA 0%, white 100%);
		/* 多个渐变色 */
	}
</style>